package com.blog.wu.myblog.entity;

import com.blog.wu.myblog.base.DataEntity;

import java.util.ArrayList;
import java.util.List;


/**
 * @Author wuyanshen
 * @Date 2018-11-02 11:20 AM
 * @Discription 用户角色实体类
 */
public class Role extends DataEntity<Role>{

    private String roleName;
    private String cname;

    private Permission permission;

    private List<Permission> permissions;

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Permission getPermission() {
        return permission;
    }
    public void setPermission(Permission permission) {
        this.permission = permission;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
